//
//  MapSelectionLayer.h
//  DiceWar
//
//  Created by xiaofeng on 27/6/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef CLASSES_LAYERS_MAPSELECTIONLAYER_H_
#define CLASSES_LAYERS_MAPSELECTIONLAYER_H_

#include "cocos2d.h"
#include "HexMap.h"
#include "HexMapLayer.h"

class MapSelectionLayer : public cocos2d::CCLayer
{
public:
    LAYER_NODE_FUNC(MapSelectionLayer);
    
    MapSelectionLayer();
    ~MapSelectionLayer();
    
    bool init();
    virtual void onEnter();
    
    bool initHexMap();
    bool initUserInterface();
    
    void onNextMapButtonClicked(cocos2d::CCObject* pSender);
    void onStartGameButtonDown(cocos2d::CCObject* pSender);
    
private:
    HexMapLayer* m_pHexMapLayer;
};

#endif //CLASSES_LAYERS_MAPSELECTIONLAYER_H_
